/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.warehouse.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Office;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * MaterialEntity
 * @author qrg
 * @version 2017-03-27
 */
public class Material extends DataEntity<Material> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// name
	private String model;		// model
	private Double price;		// price
	private String currency;		// currency
	private String unit;		// unit
	private Double stock;		// stock
	private Double standard;		// standard
	private String standardunit;		// standardunit
	private Office office;		// office
	
	public Material() {
		super();
	}

	public Material(String id){
		super(id);
	}

	@Length(min=0, max=300, message="name长度必须介于 0 和 300 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=100, message="model长度必须介于 0 和 100 之间")
	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}
	
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	@Length(min=0, max=60, message="currency长度必须介于 0 和 60 之间")
	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}
	
	@Length(min=0, max=60, message="unit长度必须介于 0 和 60 之间")
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}
	
	public Double getStock() {
		return stock;
	}

	public void setStock(Double stock) {
		this.stock = stock;
	}
	
	public Double getStandard() {
		return standard;
	}

	public void setStandard(Double standard) {
		this.standard = standard;
	}
	
	@Length(min=0, max=60, message="standardunit长度必须介于 0 和 60 之间")
	public String getStandardunit() {
		return standardunit;
	}

	public void setStandardunit(String standardunit) {
		this.standardunit = standardunit;
	}
	
	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
}